package com.sry.blog.sys.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * InnoDB free: 10240 kB; (`author`) REFER `blog/user`(`id`) ON UPDATE CASCADE
 * </p>
 *
 * @author SR_Y
 * @since 2022-01-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("article")
@ApiModel(value="Article对象", description="InnoDB free: 10240 kB; (`author`) REFER `blog/user`(`id`) ON UPDATE CASCADE")
@Builder
public class Article implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "文章ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "文章标题")
    private String title;

    @ApiModelProperty(value = "文章内容地址（md文档）")
    private String content;

    @ApiModelProperty(value = "发布时间")
    private Date publishTime;

    @ApiModelProperty(value = "最近修改时间")
    private Date recentEdit;

    @ApiModelProperty(value = "文章介绍和引言")
    private String introduce;

    @ApiModelProperty(value = "图头地址")
    private String img;

    @ApiModelProperty(value = "作者ID")
    private Integer author;

    @ApiModelProperty(value = "文章状态")
    private Integer status;

    @ApiModelProperty(value = "文章阅读量")
    private Integer readCount;

    @ApiModelProperty(value = "逻辑删除：【0：正常】【1：逻辑删除】")
    private Integer isdelete;


}
